/*
 * ============================================================================
 * Copyright Notice!
 * ----------------------------------------------------------------------------
 * This file contains proprietary and confidential information belonging to the
 * group of people involvled in developing this project.  Reproduction, disclosure 
 * or use without specific written authorization from project stake holders is 
 * prohibited. Please refer the readme.txt in project installation folder for more
 * specific contacts
 *
 * All rights reserved.
 * ============================================================================
 */
package edu.uwm.universitydb.db.connection;

import java.sql.Connection;

import edu.uwm.universitydb.framework.exception.DataAccessException;

/**
 * Interface defining the data base connection contracts.
 * Class implementing this interface abstracts the underlying connection
 * details from rest of the application.
 * 
 * @author Shyam Nair
 */
public interface DBConnection
{
    /**
     * 
     * Method returning a connection object
     * 
     * @param url
     * @param username
     * @param password
     * @return
     */
    Connection getConntection(final String url, final String username, final String password) throws DataAccessException;

}

/*
 * ============================================================================
 * Change History
 * ----------------------------------------------------------------------------
 * Mar 31, 2014   Shyam Nair
 * File created
 * ----------------------------------------------------------------------------
 */